/*--------------------------------------------------------------------------
  Project::MONDIALI SCI ALPINISMO
  Package::ProgressBar
  Class::ProgressBar
  File ProgressBar.h
  --------------------------------------------------------------------------
  * METHODS AND CLASS PARAMETERS


  --------------------------------------------------------------------------
  * FUNCTIONS DESCRIPTION
  
	...

  --------------------------------------------------------------------------
  * COPYRIGHT

  --------------------------------------------------------------------------
  * INFO ABOUT AUTHOR AND VERSIONS
  Author:	Tino Giorgio	Data: 
  Rev1:			Data:

  --------------------------------------------------------------------------
  * E-MAIL & CONTACTS

  GIORGIO TINO:	tinoshi@libero.it
	           	shapeofangels@hotmail.com
	            giorgio.tino@studenti.polito.it

  --------------------------------------------------------------------------*/

#if !defined(PROGRESSBAR_H)
#define PROGRESSBAR_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/* DEFINES */
#include "Defines.h"

#include <stdio.h>
#include <stdlib.h>

#include "Bitmap.h"

/* OpenGL Includes */
#ifdef FREEGLUT_IS_PRESENT
#  include <GL/freeglut.h>
#else
#  ifdef __APPLE__
#    include <GLUT/glut.h>
#  else
#    include <GL/glut.h>
#  endif
#endif

#include <plib/ul.h>
#include <plib/pw.h>

/* Application Includes*/

/* DEFINES */
#define EXIT_ERROR(x) printf(x);exit(0) 
#define DEBUG_INFO(x) //printf(x);getch();

/* Application Includes*/

/* DEFINES */
#define PB_COLOR_SUNBURST 0
#define PB_COLOR_ICE      1
#define PB_COLOR_EMERALD  2
#define PB_COLOR_METAL    3

class ProgressBar  
{
public:
	ProgressBar(float start_x, float start_y, float dim_x, float dim_y, int blocks, int colour);
	virtual ~ProgressBar();
	void display(float p);
private:
    float progress,blocks,start_x,start_y,dim_x,dim_y;
    int colour;
};

#endif // !defined(PROGRESSBAR_H_)
